<template>
  <div>
    <p>下拉选择</p>
    <CySelect :data="data" v-model="val" :filterable="true"></CySelect>
    <div style="margin-top:20px">结果：{{ val }}</div>
    <test  @setName="handler"></test>
  </div>
</template>

<script setup>
// import CySelect from '_c/select/index.vue'
import { ref } from 'vue'
import test from './test.vue'
const val=ref()
const data = ref([{ value: 1, label: '测试' }, { value: 2, label: '测试2' }])
const handler = (val) => {
  console.log(val)
}
</script>

<style lang="scss" scoped></style>